#!/usr/bin/perl -w 
use strict;
use MediaWiki::API;

my $args = @ARGV;

if ( $args != 1 ) {
	print "\tUsage: getPage.pl <name>\n";
	exit;
}

my $api = MediaWiki::API->silent();
my $page = $api->getPage($ARGV[0]);
if ( $page ) {
	print "$page->{text}\n";
}
